<?php /* Smarty version 2.6.18, created on 2010-05-08 15:58:39
         compiled from admin/user/edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'admin/user/edit.tpl', 39, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<div id="main">
			<div class="head-dark-box">
				<div class="tit">系统管理>用户管理>管理用户</div>
			</div>	
		    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/title.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	  
			<div class="msg-box">
				<ul class="viewmess">
					<li class="light-row">
						<form action="admin.php?m=user&a=search" method="post">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;输入需要查找的用户名：
						<input type="text" size="20" name="username" value="<?php echo $this->_tpl_vars['username']; ?>
"> 
						<input type="submit" class="button" value="搜索用户">
						</form>
					</li>
					  <form  method="post" action="admin.php?m=user&a=del&page=<?php echo $this->_tpl_vars['page']; ?>
" onsubmit="return confirm('你确定要删除选中的用户吗?')"  >
					<li class="dark-row">
						<span class="list_width width_font">用户名</span>
						<span class="list_width width_font" style="width:200px">电子邮件</span>
						<span class="list_width width_font">注册时间</span>
						<span class="list_width width_font">操&nbsp;&nbsp;作</span>
					</li>
				        <?php unset($this->_sections['doc']);
$this->_sections['doc']['name'] = 'doc';
$this->_sections['doc']['loop'] = is_array($_loop=$this->_tpl_vars['users']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['doc']['show'] = true;
$this->_sections['doc']['max'] = $this->_sections['doc']['loop'];
$this->_sections['doc']['step'] = 1;
$this->_sections['doc']['start'] = $this->_sections['doc']['step'] > 0 ? 0 : $this->_sections['doc']['loop']-1;
if ($this->_sections['doc']['show']) {
    $this->_sections['doc']['total'] = $this->_sections['doc']['loop'];
    if ($this->_sections['doc']['total'] == 0)
        $this->_sections['doc']['show'] = false;
} else
    $this->_sections['doc']['total'] = 0;
if ($this->_sections['doc']['show']):

            for ($this->_sections['doc']['index'] = $this->_sections['doc']['start'], $this->_sections['doc']['iteration'] = 1;
                 $this->_sections['doc']['iteration'] <= $this->_sections['doc']['total'];
                 $this->_sections['doc']['index'] += $this->_sections['doc']['step'], $this->_sections['doc']['iteration']++):
$this->_sections['doc']['rownum'] = $this->_sections['doc']['iteration'];
$this->_sections['doc']['index_prev'] = $this->_sections['doc']['index'] - $this->_sections['doc']['step'];
$this->_sections['doc']['index_next'] = $this->_sections['doc']['index'] + $this->_sections['doc']['step'];
$this->_sections['doc']['first']      = ($this->_sections['doc']['iteration'] == 1);
$this->_sections['doc']['last']       = ($this->_sections['doc']['iteration'] == $this->_sections['doc']['total']);
?>
						<li class="light-row" style="padding-top:2px; padding-bottom:2px">
							<?php if ($this->_tpl_vars['users'][$this->_sections['doc']['index']]['disable'] == 1): ?>
								<span class="list_width red_font">	
							<?php else: ?>
								<span class="list_width">
							<?php endif; ?>
							<?php if ($this->_tpl_vars['users'][$this->_sections['doc']['index']]['id'] != 1): ?>
								<input type="checkbox" name="id[]"  value="<?php echo $this->_tpl_vars['users'][$this->_sections['doc']['index']]['id']; ?>
">
							<?php endif; ?>
						
						
							<?php echo $this->_tpl_vars['users'][$this->_sections['doc']['index']]['userName']; ?>

							</span>
							
							<span class="list_width" style="width:200px"><?php echo $this->_tpl_vars['users'][$this->_sections['doc']['index']]['email']; ?>
</span>
							<span class="list_width"><?php echo ((is_array($_tmp=$this->_tpl_vars['users'][$this->_sections['doc']['index']]['regTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span>
				
							<span class="list_width" style="width:160px;">
						
							【<a href="admin.php?m=user&a=mod&id=<?php echo $this->_tpl_vars['users'][$this->_sections['doc']['index']]['id']; ?>
">修改</a>】
							<?php if ($this->_tpl_vars['users'][$this->_sections['doc']['index']]['id'] != 1): ?>
							【<a onclick="return confirm('确定要删除用户<?php echo $this->_tpl_vars['users'][$this->_sections['doc']['index']]['userName']; ?>
吗？')" href="admin.php?m=user&a=del&page=<?php echo $this->_tpl_vars['page']; ?>
&id=<?php echo $this->_tpl_vars['users'][$this->_sections['doc']['index']]['id']; ?>
">删除</a>】
							<?php endif; ?>
							</span>
						</li>
					<?php endfor; else: ?>
						<li class="light-row">
							该页没有用户
						</li>
					<?php endif; ?>
				
					<li class="dark-row">
						<span class="col_width" style="margin-left:15px;width:240px"> 
							<a href="javascript:select()">全选</a>/<a href="javascript:fanselect()">反选</a>/<a href="javascript:noselect()">全不选</a>&nbsp;&nbsp;选中项: 
							
							<input  name="dels" type="image" title="删除" value="delete" src="public/images/admin/delete.gif">&nbsp;&nbsp;
						 </span> 
						<span class="right">
							<?php echo $this->_tpl_vars['fpage']; ?>

						</span>
					</li>
					 </form>
				</ul>	
			</div>
                   
		</div>
<div id="timer">
	<p><span class="exetime">当前脚本执行用时</span><span class="red_font"><?php echo $this->_tpl_vars['timer']; ?>
</span>秒&nbsp;</p>	
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/public/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	

